package com.dragon.repository.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 收款子表
 * </p>
 *
 * @author sy
 * @since 2023-12-12
 */
@Getter
@Setter
@TableName("dragon_payment_contract")
public class PaymentContract implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 收款主表id
     */
    private Integer paymentId;

    /**
     * 合同id
     */
    private Integer contractId;

    /**
     * 计划收款id
     */
    private Integer planId;

    /**
     * 收款金额
     */
    private Double money;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 合同名称
     */
    @TableField(exist = false)
    private String contractName;

    /**
     * 应收金额
     */
    @TableField(exist = false)
    private Double planMoney;

    /**
     * 实收金额
     */
    @TableField(exist = false)
    private Double actualPlanMoney;

    /**
     * 平账状态：0否 1是
     */
    private Integer balancingAccounts;


    /**
     * 单条备注
     */
    private String remark;

    /**
     * 账单id
     */
    private Integer billId;

    /**
     * 收款状态
     */
    @TableField(exist = false)
    private Integer paymentStatus;

    /**
     * 客户名称
     */
    @TableField(exist = false)
    private String customerName;

}
